package com.kly.user.service;

import com.fqgj.common.api.Response;
import com.kly.user.domain.LoginResult;
import com.kly.user.dto.UserAccessDto;
import com.kly.user.dto.UserBaseDto;
import com.kly.user.dto.UserLoginDto;
import com.kly.user.enums.UserTokenType;

import java.util.Map;

public interface AuthLoginService {
    Response<UserBaseDto> authLogin(UserLoginDto userLogin);

    Response<String> logout(String userCode);

    Response<String> getToKen(String userCode, UserTokenType userTokenType);

    Response<String> saveToken(UserAccessDto userAccessDto, UserTokenType userTokenType);

    Response<String> getRongCloudToken(String userCode);

    Response<String> saveRongCloudToken(UserAccessDto userAccessDto);

    /**
     * 是否首次注册用户
     */
    Response<Boolean> firstRegister(String clientId, String mobile, String email, String appCode);

    Response<Boolean> firstRegister(String userCode,  String appCode);
}
